<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">   
    <title>My JSP 'login.jsp' starting page</title>
  </head>
<script type="text/javascript">
	$(document).ready(function() {
		$('#updateuser').click(function() {
			$('#mainForm').submit();
			$('div:has(iframe)', parent.document).hide();
			parent.window.location.reload();
		});
	});
</script>
  <body>
    <form action="updateuser.do?userid=${user.userid}"  method="post" name="updateuserForm">
  	<%-- <input type="text" name="userid" value="${user.userid}" /> --%>
  			<br>账号
  			<input type="text" name="username" value="${user.username}" />
  			<br>密码
  			<input type="text" name="password" value="${user.password}" />
  			<br>
  			<input type="submit" value="updateuser" id="updateuser" onclick=""/>
  	</form> 
  	${error}
  </body>
</html>
